[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Computes the difference of this set with another set. The difference of these two sets
is all items that appear in this set, but not in otherSet. This set receives
the difference of the two sets; the other set is unchanged.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public void DifferenceWith( OrderedSet<T> otherSet ) |
Visual Basic (Declaration) |
---|
Public Sub DifferenceWith ( _ otherSet As OrderedSet(Of T) _ ) |
Visual C++ |
---|
public: void DifferenceWith ( OrderedSet<T>^ otherSet ) |
Parameters
- otherSet
- OrderedSet<(Of <T>)>
Set to difference with.
Remarks
The difference of two sets is computed in time O(M + N log M), where M is the size of the larger set, and N is the size of the smaller set.
Exceptions
Exception | Condition |
---|---|
System..::InvalidOperationException | This set and otherSet don't use the same method for comparing items. |
See Also
OrderedSet<(Of <T>)> Class
Wintellect.PowerCollections Namespace